/** =================================================
 * 静态路由
 * keepAlive: true // 组件需要缓存
 *------------------------------------------------- */

import AntdLayout from '@/layout/TabsLayout.vue'
export default [
    {
        path: '/about',
        name: 'About',
        meta: { title: '关于系统', keepAlive: true , auth: false},
        component: () => import('@/views/About.vue')
    },
    {
        path: '/demo',
        name: 'Demo',
        meta: { title: '演示页面', keepAlive: true , auth: false},
        component: () => import('@/views/Demo.vue')
    },
    {
        path: '/login',
        name: 'Login',
        meta: { title: '用户登录', keepAlive: true , auth: false},
        component: () => import('@/views/Login.vue')
    },
    {
        path: '/workplatform',
        name: 'Workplatform',
        meta: { title: '工作台', scrollTop: 0 , auth: false },
        component: () => import('@/views/Workplatform.vue')
    },
    {
        path: '/',
        name: 'Index',
        redirect: '/dashboard',
        meta: { title: '/', scrollTop: 0 },
        component: AntdLayout,
        children: [
            {
                path: '/dashboard',
                name: 'Dashboard',
                meta: { title: '主要页面', scrollTop: 0 , auth: false },
                component: () => import('@/views/Dashboard.vue')
            },

        ]
    },
]
